package com.esa.tois;

import java.io.IOException;
import java.net.UnknownHostException;
import java.util.List;

import org.xml.sax.SAXException;

import com.esa.doxml.CreateChoiceXML;
import com.esa.javabean.Choice;

public class TransChoice {
	private Transmit       ts;
	private CreateChoiceXML   ccx;
	
	public TransChoice() throws UnknownHostException, IOException{
		ts=new Transmit();
		ccx=new CreateChoiceXML();
	}
	public void trans(List<Choice> list) throws IOException, SAXException{
		ts.transmitXML(ccx.createFile(list));
}
}
